<template>
  <button @click="isShowDemo = !isShowDemo">显示/隐藏</button>
  <Demo v-if="isShowDemo"></Demo>
</template>

<script>
import { ref } from "vue";
import Demo from "@/components/Demo";

export default {
  name: "App",
  components: { Demo },
  setup() {
    let isShowDemo = ref(true);

    return {
      isShowDemo,
    };
  },
};
</script>

<style>
</style>
